import {jwtServerInstance} from "../index";
import qs from	'qs'

export const recallMessage = (msgid) => {
    return jwtServerInstance.request({
      url:'/hospitalWeChat/recallMessage',
      method:'post',
      data:qs.stringify({
        msgid:msgid
      })
    })
  }

export const sendTextMessage = (wechatForm) => {
    console.log()
    return jwtServerInstance.request({
        url:'/hospitalWeChat/sendInfo',
        method:'post',
        data:qs.stringify({
            appId:wechatForm.appId,
            touser:wechatForm.touser,
            toparty:wechatForm.toparty,
            totag:wechatForm.totag,
            info:wechatForm.message
        })
    })
}